package com.xiaochi.subject.domain.convert;

import com.xiaochi.subject.domain.entity.SubjectCategoryBO;
import com.xiaochi.subject.infra.basic.entity.SubjectCategory;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author zqx
 * @since 2024/7/20
 */
@Mapper
public interface SubjectCategoryConverter {

    SubjectCategoryConverter INSTANCE = Mappers.getMapper(SubjectCategoryConverter.class);

    SubjectCategory CategoryBoToCategory(SubjectCategoryBO subjectCategoryBO);

    List<SubjectCategoryBO> CategoryListToCategoryBoList(List<SubjectCategory> subjectCategoryList);
}
